package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.qc.common.DateUtil;
import com.qc.entity.info.ListInfo;

public class UserBossScheduleEntity extends ListInfo {
	
	protected long bsId;//自增长
	protected long bossUserid;
	protected String scheduleType;
	protected String startTime;
	protected String endTime;
	protected String targetProvince;
	protected String targetCity;
	protected String peopleNumber;
	protected String days;
	protected double moneyDay;
	protected String demand;
	protected String createTime;
	
	protected String avatar;//用户头像
	protected String nickname;//用户昵称
	protected String sex;//性别
	public static UserBossScheduleEntity getInstance(ResultSet rs) throws SQLException {
		UserBossScheduleEntity entity = new UserBossScheduleEntity();

		entity.setBsId(rs.getLong("bs_id"));
		entity.setScheduleType(rs.getString("schedule_type"));
		entity.setStartTime(rs.getString("start_time"));
		entity.setEndTime(rs.getString("end_time"));
		entity.setTargetProvince(rs.getString("target_province"));
		entity.setTargetCity(rs.getString("target_city"));
		entity.setPeopleNumber(rs.getString("people_number"));
		entity.setDemand(rs.getString("demand"));
		entity.setMoneyDay(rs.getDouble("money_day"));
		entity.setCreateTime(DateUtil.timestampParseString(rs.getTimestamp("created_time")));
		entity.setAvatar(rs.getString("avatar"));
		entity.setNickname(rs.getString("nickname"));
		entity.setSex(rs.getString("sex"));
		entity.setBossUserid(rs.getLong("user_id"));
		return entity;
	}
	
	public long getBsId() {
		return bsId;
	}
	public void setBsId(long bsId) {
		this.bsId = bsId;
	}
	public String getScheduleType() {
		return scheduleType;
	}
	public void setScheduleType(String scheduleType) {
		this.scheduleType = scheduleType;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getTargetProvince() {
		return targetProvince;
	}
	public void setTargetProvince(String targetProvince) {
		this.targetProvince = targetProvince;
	}
	public String getTargetCity() {
		return targetCity;
	}
	public void setTargetCity(String targetCity) {
		this.targetCity = targetCity;
	}
	public String getPeopleNumber() {
		return peopleNumber;
	}
	public void setPeopleNumber(String peopleNumber) {
		this.peopleNumber = peopleNumber;
	}
	public String getDemand() {
		return demand;
	}
	public void setDemand(String demand) {
		this.demand = demand;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public double getMoneyDay() {
		return moneyDay;
	}

	public void setMoneyDay(double moneyDay) {
		this.moneyDay = moneyDay;
	}

	public long getBossUserid() {
		return bossUserid;
	}

	public void setBossUserid(long bossUserid) {
		this.bossUserid = bossUserid;
	}

	public String getDays() {
		return days;
	}

	public void setDays(String days) {
		this.days = days;
	}
	
	

}
